<template>
  <div>
    <mt-swipe :auto="4000">
      <!-- <mt-swipe-item>1</mt-swipe-item>
      <mt-swipe-item>2</mt-swipe-item>
      <mt-swipe-item>3</mt-swipe-item> -->
      <!-- 使用v-for进行遍历 -->
      <mt-swipe-item v-for="item in lunbotuList" :key="item.url">
        <img :src="item.img_url" alt="" :class="{'full':isFull}">
      </mt-swipe-item>
    </mt-swipe>
  </div>
</template>
<script>
export default {
  //当别的组件调用轮播图组件的时候，必须传入轮播图图片的数据数组lunbotulist
  //传入isFull的值，来确定图片是否 100%
  props:["lunbotuList","isFull"]
};
</script>
<style lang="scss" scoped>
.mint-swipe {
  text-align: center;
  height: 180px;
}
.mint-swipe-item {
 
  // 将图片的大小设置一下
  img{
    
    height:100%;
  }
}
.full{
  width:100%;
}
</style>

